package org.demo.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.demo.entity.Houses;
import org.demo.entity.HousesDto;
import org.demo.entity.PageBean;

import java.util.List;

public interface IHousesService extends IService<Houses> {

    void add(HousesDto housesDto);
    void addLanHouse(HousesDto housesDto);

    PageBean<HousesDto> Pagelist(Integer pageNum, Integer pageSize, HousesDto houses);
    PageBean<HousesDto> buylist(Integer pageNum, Integer pageSize, HousesDto houses);
    PageBean<HousesDto> buyCuslist(Integer pageNum, Integer pageSize, HousesDto houses);
    PageBean<HousesDto> reslist(Integer pageNum, Integer pageSize, HousesDto houses);
    PageBean<HousesDto> resCuslist(Integer pageNum, Integer pageSize, HousesDto houses);
    List<HousesDto> list (HousesDto houses);
    HousesDto selectId (HousesDto houses);

    Houses detalil(String id);

    boolean update(HousesDto houses);
    void weituoOK(Houses houses);
    boolean ItemAllupdate(HousesDto housesDto);

    void delete(String id);

    void downHouse(Houses houses);
}
